/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.service;

import com.yunqian.redot.domain.OperationLog;
import com.yunqian.service.BaseService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

/**
 * @author czy
 * 2018-11-08 18:30:44
 */
@Log4j2
@Service
public class OperationLogService extends BaseService<OperationLog, Long> {

    public OperationLog save(String menuName, String operation, Long userId) {
        OperationLog oLog = new OperationLog();
        oLog.setMenuName(menuName);
        oLog.setOperation(operation);
        oLog.setUserId(userId);
        return super.save(oLog);
    }
}
